<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
</style>
<div class="bjui-pageHeader">
    <div class="glyphicon glyphicon-th-large">栏目访问权限设置</div>
</div>
<div class="bjui-pageContent">
    <form action="{:U('Auth/accessCate')}" method="post" data-toggle="validate">
        <table class="table table-bordered table-hover table-striped table-top">
            <thead>
                <tr>
                    <th width="2%"><input type="checkbox" class="checkboxCtrl" data-group="id[]" data-toggle="icheck"></th>
                    <th>名称</th>
                </tr>
            </thead>
            <tbody>
                <foreach name='cate' item='v'>
                    <tr data-id="{$v.id}">
                        <td>
                        <input type="checkbox" name="id[]" data-toggle="icheck" value="{$v.id}" <if condition="in_array($v['id'],$authed_group)"> checked="checked" </if>></td>
                        <td>
                            {$v.delimiter}
                            <if condition="$v['pid'] neq 0">├─</if>
                            <a href="<if condition='$v.type eq 0'>
                                {:U(ucfirst($v['tablename']). '/index', array('pid' => $v['id']))}
                                <else/>
                                {:U('Category/edit',array('id' => $v['id']))}
                            </if>
                            "  data-toggle="navtab" data-id="article-index" data-title="内容列表">{$v.name}
                        </a>
                    </td>
                   
                </tr>
            </foreach>
        </tbody>
    </table>
    <input type="hidden" name="group_id" value="{$id}">
</form>
</div>
<div class="bjui-pageFooter">
<ul>
    <li>
        <button type="button" class="btn-close" data-icon="close">关闭</button>
    </li>
    <li>
        <button data-icon="save" class="btn btn-default" type="submit">保存</button>
    </li>
</ul>
</div>